-- to_layer_intime
-- Created by chengb Sep/11/2015
-- 成就：{minute}分钟内完成一次探险，并到达迷宫{layer}层
-- 主要逻辑交给服务器处理

return {
    -- 获取成就描述
    queryDesc = function(id)
        local config = GameAchievementM.query(id);

        local ruleArg  = config["rule_arg"];
        local minute   = ruleArg["minute"];
        local layer    = ruleArg["layer"];
        local desc     = config["desc"];
        
        desc = string.gsub(desc, "{minute}", minute);
        desc = string.gsub(desc, "{layer}", layer);

        return desc;
    end,
};